<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<section class="tab-pane fade" id="add" role="tabpanel">

    <form th:action="@{/admin/news/save}" method="post" enctype="multipart/form-data" >

        <div class="form-group">
            <label for="addNewsTitle">标题</label>
            <input id="addNewsTitle"
                   class="form-control"
                   name="newsTitle"
                   type="text" placeholder="请输入姓名..."/>
        </div>

        <div class="form-group">
            <label for="addNewsAuthor">作者</label>
            <input id="addNewsAuthor"
                   class="form-control"
                   name="newsAuthor"
                   type="text" placeholder="请输入学号..."/>
        </div>

        <label for="addNewsCover"> 请选择封面图片</label>
        <div class="input-group mb-3">
            <div class="custom-file">
                <input type="file" class="custom-file-input" id="addNewsCover" name="newsCover">
                <label class="custom-file-label" for="addNewsCover">Choose file</label>
            </div>
        </div>

        <div class="form-group">
            <label for="addNewsIntroduce">介绍</label>
            <textarea id="addNewsIntroduce" class="form-control"
                      name="newsIntroduce" type="text" placeholder="请输入介绍..."></textarea>
        </div>



        <div class="form-group">
            <label for="addNewsContent">内容</label>
            <input id="addNewsContent" class="form-control"
                   name="newsContent" type="text" placeholder="请输入专业...">
        </div>
        

        <button type="submit" class="mb-5 btn btn-outline-success">提交</button>

    </form>

</section>
</html>